attributes:
  - key: uuid-single
    fieldType: UUID
    tab: tab1
  - key: identifier-single
    fieldType: TEXT
    tab: tab1
  - key: number-field
    fieldType: NUMBER
    tab: tab1
  - key: dropdown-field
    fieldType: DROPDOWN
    values:
        - Select me
        - Or select this row
        - Don't select this one
        - the-final-choice
    tab: tab1
  - label: refsystem as list
    key: refsystem-as-list
    fieldType: TEXT
    occurrence: REPEAT
    tab: tab1
  - label: Referencesystem object
    key: referencesystem-object
    fieldType: COMPLEX
    typename: referencesystem
    tab: tab1
  - label: Referencesystem object list
    key: referencesystem-object-list
    fieldType: COMPLEX
    typename: referencesystem
    occurrence: REPEAT
    tab: tab2
    #duplicates should be ignored
  - label: Referencesystem object list
    key: referencesystem-object-list
    fieldType: COMPLEX
    typename: referencesystem
    occurrence: REPEAT
    tab: tab2
  - key: date-field
    fieldType: DATE
  - key: date-time-field
    fieldType: DATETIME
    tab: tab2
  - key: boolean-field
    fieldType: BOOLEAN
    tab: tab2
  - key: contact
    fieldType: COMPLEX
    typename: contact
    occurrence: REPEAT
    tab: tab3
  - key: identifier-other
    fieldType: TEXT
    tab: tab3
  - label: Feature catalog
    key: feature-catalog
    fieldType: COMPLEX
    typename: featureCatalog    
    condition: equalTo(typeOf("."), 'FeatureTypeInfo')
    tab: tab3
  - key: source
    fieldType: DROPDOWN
    occurrence: REPEAT
    tab: tab3
  - key: target
    fieldType: DERIVED
    derivedFrom: source
    occurrence: REPEAT
    tab: tab3
  - key: extra-text
    fieldType: TEXT
    tab: tab1, tab3
csvImports:
  - sourcetarget.csv

types:
  - typename: referencesystem
    attributes:
        - label: Code
          key: code
          fieldType: TEXT
        - label: codeSpace
          key: code-space
          fieldType: TEXT
  - typename: contact
    attributes:
        - key: name
          fieldType: TEXT
        - key: url
          fieldType: TEXT
        - key: phone
          fieldType: TEXT
          occurrence: REPEAT          
  - typename: featureCatalog
    attributes:
        - label: Unique identifier
          key: feature-catalog-identifier
          fieldType: UUID
        - label: Feature attribute
          key: feature-attribute
          fieldType: COMPLEX
          typename: featureAttribute
          occurrence: REPEAT


geonetworks:
  - name: geonetwork url
    url: https://www.dov.vlaanderen.be/geonetwork/xml_iso19139_save?uuid=${UUID}
  - name: geonetwork oefen url
    url: https://oefen.dov.vlaanderen.be/geonetwork/xml_iso19139_save?uuid=${UUID}

geonetworkmapping:
    -  geoserver: identifier-other
       geonetwork: //gmd:fileIdentifier/gco:CharacterString/text()